<?php

/**
 * home actions.
 *
 * @package    nogoya
 * @subpackage home
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class homeActions extends sfActions
{
  /**
   * Executes index action
   *
   */
  public function executeIndex()
  {
  }
  public function executeError404(){
  }
  public function executeTest(){
    $this->medico_id = 1;
    $dia = "2012-02-27";
    $this->hora = "08:00";
    $this->fin = "08:30";
    $turno = TurnoPeer::verificarTurnoLibre($this->medico_id,$dia,$this->hora,$this->fin);
    echo "<pre>";print_r($turno);echo "</pre>";
    if ($turno) {
//      $this->puede_sobreturnos = TurnoPeer::getSobreturnosHora($this->medico,$fecha,$this->hora);
      $this->sobreturno = 1;
    }

  }
}
